package com.wrl.design.pattern.creational.factorymethod;

/**
 * 工厂方法
 * 核心：具体的生产，交给子类来处理
 *
 * @author Wang Renlei
 * @Date 2019/11/12 0012
 */
public class Test {

    public static void main(String[] args) {
        VideoFactory javaVideoFactory = new JavaVideoFactory();
        Video video = javaVideoFactory.getVideo();
        video.product();
        VideoFactory pythonVideoFactory = new PythonVideoFactory();
        VideoFactory peVideoFactory = new PeVideoFactory();
    }

}
